package com.pojo;


import java.util.List;

public class Menu implements Comparable<Menu>{

  private Integer menuId;
  private String menuName;
  private String menuParent;
  private String menuNum;
  private String menuSer;
  private String menuIde;
  private String menuStatus;
  private String menuDesc;
  private String menuUrl;
  private String createBy;
  private java.util.Date createDate;
  private String updateBy;
  private java.util.Date updateDate;

  private List<Menu> children;

  public List<Menu> getChildren() {
    return children;
  }

  public void setChildren(List<Menu> children) {
    this.children = children;
  }

  public Integer getMenuId() {
    return menuId;
  }

  public void setMenuId(Integer menuId) {
    this.menuId = menuId;
  }


  public String getMenuName() {
    return menuName;
  }

  public void setMenuName(String menuName) {
    this.menuName = menuName;
  }


  public String getMenuParent() {
    return menuParent;
  }

  public void setMenuParent(String menuParent) {
    this.menuParent = menuParent;
  }


  public String getMenuNum() {
    return menuNum;
  }

  public void setMenuNum(String menuNum) {
    this.menuNum = menuNum;
  }


  public String getMenuSer() {
    return menuSer;
  }

  public void setMenuSer(String menuSer) {
    this.menuSer = menuSer;
  }


  public String getMenuIde() {
    return menuIde;
  }

  public void setMenuIde(String menuIde) {
    this.menuIde = menuIde;
  }


  public String getMenuStatus() {
    return menuStatus;
  }

  public void setMenuStatus(String menuStatus) {
    this.menuStatus = menuStatus;
  }


  public String getMenuDesc() {
    return menuDesc;
  }

  public void setMenuDesc(String menuDesc) {
    this.menuDesc = menuDesc;
  }


  public String getMenuUrl() {
    return menuUrl;
  }

  public void setMenuUrl(String menuUrl) {
    this.menuUrl = menuUrl;
  }


  public String getCreateBy() {
    return createBy;
  }

  public void setCreateBy(String createBy) {
    this.createBy = createBy;
  }


  public java.util.Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(java.util.Date createDate) {
    this.createDate = createDate;
  }


  public String getUpdateBy() {
    return updateBy;
  }

  public void setUpdateBy(String updateBy) {
    this.updateBy = updateBy;
  }


  public java.util.Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(java.util.Date updateDate) {
    this.updateDate = updateDate;
  }

  @Override
  public int compareTo(Menu o) {
    Integer i=Integer.parseInt(this.getMenuSer())-Integer.parseInt(o.getMenuSer());
    return i;
  }
}
